
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_PayIns_Shift]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[PayIn] DROP CONSTRAINT FK_PayIns_Shift
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Shift]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Shift]
GO

CREATE TABLE [dbo].[Shift] (
	[ShiftId] [int] IDENTITY (1, 1) NOT NULL ,
	[ShiftDescription] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL 
) ON [PRIMARY]
GO

